/-app
/-docs ...
/-docs/types
api.ts
api2.ts
/-files
FileTree.ts
FileTree2.ts
SyncStorageAccess.ts
/-imports
/-persistence
/-storage
/-typings
errors.js
functions.ts
index.html
try.js
xxxxxxxxxx
 
1
module teapo.docs2 {
2
​
3
  /**
4
   * Add your handlers here
5
   */
6
  export module types {
7
​
8
    /**
9
     * Default type loading.
10
     * Other handlers should conform to the same signature, and be on the child modules, like so:
11
     * module teapo.docs.types.text { function load(...); }
12
     */
13
    export function load(path: string, storage: PeristentState): DocHandler { 
14
      return null; // text.load(storage);
15
    }
16
  }
17
​
18
  export interface DocHandler {
19
​
20
    open(): HTMLElement;
21
    
22
    
23
  }
24
​
25
  
26
  export interface PeristentState {
27
    content: ko.Observable<string>;
28
    state: ko.Observable<any>;
29
  }
30
​
31
  
32
  
33
}
19:24